import { ElMessage } from 'element-plus'
import useRequet, { RespData } from "./network"

export default function setAddLog(id: number) {
  const request = useRequet({ path: "" })
    request.sendRequest({
      address: 'customer/info/addSelectLog',
      params: {
        customerId: id
      },
      success: (resp: RespData) => {
        if(resp.code !== 0) return ElMessage.error('患者' + resp.msg )
        
      },
      fail: (resp: RespData) => {
        if(resp.code !== 0) return ElMessage.error('患者' + resp.msg )
        
      },
      method: "POST",
    })
}